package com.flyoil.petromp.mvp_m.CourseMessageModel;

import com.flyoil.petromp.apiservice.OnObserverRetrofitResetCallBack;
import com.flyoil.petromp.base.BaseEntity;
import com.flyoil.petromp.entity.entity_order.MapListEntity;
import com.flyoil.petromp.base.BaseModel;
import com.flyoil.petromp.entity.entity_order.OrderFilesEntity;
import com.flyoil.petromp.mvp_p.Listener.OnPresenterListener;
import com.flyoil.petromp.mvp_p.Listener.OrderMessageListener;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by songzhiyin on 2017/10/31.
 * 物资质保期验收单详情界面的数据处理类
 */

public class GoodsDateExamineMessageModel implements BaseModel {


    @Override
    public void loadNetworkData(Map<String, Object> map, OnPresenterListener onPresenterListener) {

        OrderMessageListener listener = (OrderMessageListener) onPresenterListener;
        List<MapListEntity> mapListEntities = new ArrayList<>();
        mapListEntities.add(new MapListEntity("订单编号", "物资采购计划申请"));
        mapListEntities.add(new MapListEntity("申请人", "王华"));
        mapListEntities.add(new MapListEntity("物资质保期", "2017-8-30至2019-8-30"));
        mapListEntities.add(new MapListEntity("物资质保金额", "￥2001.0元"));
        mapListEntities.add(new MapListEntity("申请日期", "2017年8月18日"));
        listener.upDataTextsView(mapListEntities);

        List<OrderFilesEntity> imgUrl = new ArrayList<>();
        imgUrl.add(new OrderFilesEntity("http://p0.so.qhimgs1.com/dmfd/326_204_/t012c852c8f981d6a00.jpg"));
        listener.upDataImgsView("纸质单据", imgUrl);

        listener.upDataSiganturesView(null);


        listener.upDataShowSigantureView(true);

        listener.upDataShowRemoveImagView(true);


    }
}
